package com.example.acitividemo2.service;

import com.example.acitividemo2.mapper.TestMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TestServiceImpl implements TestService {

    @Autowired
    TestMapper testMapper;

    @Override
    public String getMessage() {
        return "testServiceImpl 默认的 message";
    }

    @Override
    public List<Map<String, Object>> selectAll() {
        return testMapper.selectAll();
    }

    @Override
    public List<Map<String, Object>> selectNames() {
        return testMapper.selectNames();
    }

}
